<template>
  <div class="inventory">
    <div class="searchBox">
      <el-form
        :label-position="labelPosition"
        label-width="auto"
        :model="formLabelAlign"
        style="max-width: 600px">
        <el-form-item label="Ip" :label-position="itemLabelPosition">
          <el-input v-model="formLabelAlign.ip" />
        </el-form-item>
        <el-form-item label="账号" :label-position="itemLabelPosition">
          <el-input v-model="formLabelAlign.usercode" />
        </el-form-item>
        <el-form-item label="姓名" :label-position="itemLabelPosition">
          <el-input v-model="formLabelAlign.name" />
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { reactive, ref } from "vue";
import type { FormItemProps, FormProps } from "element-plus";

const labelPosition = ref<FormProps["labelPosition"]>("left");
const itemLabelPosition = ref<FormItemProps["labelPosition"]>("");
const formLabelAlign = reactive({
  ip: "",
  usercode: "",
  name: "",
});
</script>
<style lang="scss" scoped>
.inventory {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;

  .searchBox {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}
</style>
